package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyGoodsPay;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyGoodsPayParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyGoodsPayResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyGoodsPayShopOwerResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangge
 * @since 2021-07-08
 */
public interface BtyGoodsPayMapper extends BaseMapper<BtyGoodsPay> {

    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    List<BtyGoodsPayResult> customList(@Param("paramCondition") BtyGoodsPayParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyGoodsPayParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    Page<BtyGoodsPayResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyGoodsPayParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyGoodsPayParam paramCondition);

    List<BtyGoodsPayResult> findAllShopInfoByUserName(@Param("userName")String userName,@Param("month") String month);

    List<BtyGoodsPayResult> findAllData(@Param("paramCondition")BtyGoodsPayParam btyGoodsPayParam);

    List<BtyGoodsPayResult> selectAllCwry(@Param("paramCondition")BtyGoodsPayParam param);

    Page<BtyGoodsPayResult>  findPageByParam(Page pageContext, @Param("paramCondition") BtyGoodsPayParam param);

    List<BtyGoodsPayResult> findListByParam( @Param("paramCondition") BtyGoodsPayParam paramCondition);

    List<BtyGoodsPayShopOwerResult> selectShopOwer(@Param("paramCondition") BtyGoodsPayParam param);

    List<Map> getList(@Param("date") String date);

    void edit(@Param("list") List<BtyGoodsPay> list);

    List<BtyGoodsPayResult> getDmList(@Param("month") String month);

    List<Map> getMapList();

    int getCon(@Param("param") BtyGoodsPay entity);

    void updateByYm(@Param("param") BtyGoodsPay entity);

    void editById(@Param("param") BtyGoodsPay newEntity);

    void updateList(@Param("list") List<Map> list);

    int updateMap(@Param("map") Map map);

    void updateCwDed(@Param("month") String month, @Param("dm") String dm, @Param("mdbh") String mdbh);

    List<BtyGoodsPayShopOwerResult> getShopOwer();

    List<BtyGoodsPay> getDzList(@Param("list") List<BtyGoodsPay> list1, @Param("month") String month);

    List<BtyGoodsPay> getByList(@Param("list") List<BtyGoodsPay> list1, @Param("month") String month);

    void updateByList(@Param("list") List<BtyGoodsPay> list2);

    void updateDz(@Param("list") List<BtyGoodsPay> dzList);

    void insertList(@Param("list") List<BtyGoodsPay> list);
}
